import java.util.Scanner;
 class Lab61

{
	public static void main(String[] args) 
	{
		Scanner in = new Scanner(System.in);
		System.out.print("Please input Number: ");
		int i = in.nextInt();
		int f=0,j=0;
		int x=0;
		

		

			if(i>0 && i<=20)
			{			
				for(f=1;f<6;f++)
				{
					for(j=0;j<30;j++)
					{
						System.out.print("*");
					}
					System.out.println("*");
				}
			
			}
			
			
		
		if(i>20 && i<=40)
			{
			int k=0;
			for(i=1;i<=6;i++)
			{
			if(k==0){System.out.println("*");}
			else {
				for(j=1;j<=k;j++)
				{
					System.out.print("*");
				}
				System.out.println("");
				}
				k+=5;
			
				}
			}
			
			
			
			
			if(i>40 && i<=60)
			{
			int g=25;
			for(i=1;i<=6;i++)
			{
			if(g==0){System.out.println("*");}
			else {
				for(j=1;j<=g;j++)
				{
					System.out.print("*");
				}
				System.out.println("");
				}
				g-=5;
			
			}
		
		
			}

			
			if(i>60 && i<=100)
			{
			for(f=1;f<6;f++)
			{
				for(j=1;j<=30;j++)
				{
				if(f==2||f==3||f==4){
					if(j>=4&&j<=27){
					System.out.print(" ");}
					else{
					System.out.print("*");}
					}
					else
					System.out.print("*");
				}
				System.out.println("");
			
	
		}
			
			}
			
			if(i>100|i<=0)
				{
				System.out.print("Please input number 1-100:");
		                }

	}
		
	}
	



